package org.example.yunshu.demos.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import org.example.yunshu.demos.model.UserInfo;

@Mapper
public interface  UserMapper {
   UserInfo getUserByName(@Param("userName") String userName);

   int insertUserInfo(UserInfo userInfo);

    @Update("UPDATE user_info set head_image =#{image} WHERE user_id = #{userId} ")
    void updateHead(@Param("image") String ossFileName, @Param("userId") String userId);
}
